 <?php
echo $this->adminToolBar('homepage', 'add', '/admin/homepage/doadd/', '/admin/homepage/edit/', '/admin/homepage/delete/', '/admin/homepage/index/');
?>
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">
      <tbody>
           
        <tr>
        <td align="left" valign="top"><table align="center" width="100%" cellspacing="2" cellpadding="2" bordercolor="#e0e0e0" border="0" style="border:solid 1px #e0e0e0; border-radius:5px;margin-left: 20px;border-right-width: 1px;width: 800px;margin-top: 20px;margin-bottom: 20px;padding-right:500px; ">
          <tbody><tr>
            <td valign="top" style="padding-left: 20px;padding-right: 20px;padding-top: 20px;padding-bottom: 2px;" class="heading">

               <?php
                 echo $this->homepage_form;
               ?>

            </td>
          </tr>
        
        </tbody></table></td>
      </tr>
    </tbody></table>

<script language="javascript">
    function savehomepage()
    {
        document.getElementById('homecontentform').submit(true);
    }
         function getcontent()
{
     id=$('#blog').val();
    // alert(id);
	$.ajax({
        type: "POST",
        data: ({id: id}),
        url: "/admin/blog/getcontent/",
        success: function(data){

     	var oEditorHTML = FCKeditorAPI.GetInstance('content').SetHTML(data);
     
          
        }
    });
}

</script>